package com.lwm.service;

import com.github.pagehelper.PageInfo;
import com.lwm.domain.ResponseResult;
import com.lwm.domain.SalesContract;
import com.lwm.dto.SalesContractDto;

import java.util.List;

public interface SalesContractService {


    /**
     * 分页
     *
     * @param salesContractDto 销售合同dto
     * @return {@link ResponseResult}<{@link PageInfo}<{@link SalesContract}>>
     */
    ResponseResult<List<SalesContract>> page(
            SalesContractDto salesContractDto
    );


    /**
     * 添加
     *
     * @param salesContract 销售合同
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> save(SalesContract salesContract);


    /**
     * 删除
     *
     * @param ids ids
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> remove(List<Long> ids);


    /**
     * 更新
     *
     * @param salesContract 销售合同
     * @return {@link ResponseResult}<{@link Object}>
     */
    ResponseResult<Object> update(SalesContract salesContract);

}
